<% title "Credit Items" %>

<table>
  <tr>
    <th>Programid</th>
    <th>Role</th>
    <th>Index</th>
    <th>Givenname</th>
    <th>Familyname</th>
  </tr>
  <% for credit_item in @credit_items %>
    <tr>
      <td><%= credit_item.programId %></td>
      <td><%= credit_item.role %></td>
      <td><%= credit_item.index %></td>
      <td><%= credit_item.givenName %></td>
      <td><%= credit_item.familyName %></td>
      <td><%= link_to "Show", credit_item %></td>
      <td><%= link_to "Edit", edit_credit_item_path(credit_item) %></td>
      <td><%= link_to "Destroy", credit_item, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Credit Item", new_credit_item_path %></p>
